import { HTTP } from "./HTTP"

// 新增、编辑专家管理
export function addOrUpExpertGroup(data) {
	return HTTP({
		url: "/expertGroup",
		method: data.id ? 'put' : 'post',
		data
	});
}

// 专家管理列表
export function expertGroupPage(data) {
	return HTTP({
		url: "/expertGroup/page",
		method: "GET",
		data
	});
}

// 删除分组
export function delExpertGroup(data) {
	return HTTP({
		url: `/expertGroup/${data.id}`,
		method: "DELETE",
		data
	});
}


// 获取分组详情
export function getExpertGroup(data) {
	return HTTP({
		url: `/expertGroup/${data.id}`,
		method: "GET",
		data
	});
}

// 获取专家列表
export function expertUserPage(data) {
	return HTTP({
		url: "/system/user/page",
		method: "GET",
		data
	});
}

// 获取申报组织
export function orgPage(data) {
	return HTTP({
		url: "/declarationInfo/getPage",
		method: "GET",
		data
	});
}

// 获取申报类别
export function indexCategoryList(data) {
	return HTTP({
		url: "/socialOrganizationType/currentList",
		method: "GET",
		data
	});
}

// 申报类别获取指标列表
export function indexListByCate(data) {
	return HTTP({
		url: "/targetManagement/list",
		method: "GET",
		data
	});
}

// 分配申报组织
export function setApplyOrg(data) {
	return HTTP({
		url: "/expertDeclarationInfo/add",
		method: "POST",
		data
	});
}






